import request from '@/utils/request'

// 查询能耗分析列表
export function listDispatchEnergyConsumption(query) {
  return request({
    url: '/dispatch/system/dispatchEnergyConsumption/list',
    method: 'get',
    params: query
  })
}

// 查询能耗分析详细
export function getDispatchEnergyConsumption(energyConsumptionId) {
  return request({
    url: '/dispatch/system/dispatchEnergyConsumption/' + energyConsumptionId,
    method: 'get'
  })
}

// 新增能耗分析
export function addDispatchEnergyConsumption(data) {
  return request({
    url: '/dispatch/system/dispatchEnergyConsumption',
    method: 'post',
    data: data
  })
}

// 修改能耗分析
export function updateDispatchEnergyConsumption(data) {
  return request({
    url: '/dispatch/system/dispatchEnergyConsumption',
    method: 'put',
    data: data
  })
}

// 删除能耗分析
export function delDispatchEnergyConsumption(energyConsumptionId) {
  return request({
    url: '/dispatch/system/dispatchEnergyConsumption/' + energyConsumptionId,
    method: 'delete'
  })
}
